import request from '@/utils/request';

//获取门户站点分页列表
export function getPortalSitePageList(data) {
	return request({
		method: 'get',
		url: 'tbSiteInfo/queryPageList',
		params: data
	})
}

//获取门户站点分页列表
export function getPortalSiteList(data) {
	return request({
		method: 'get',
		url: 'tbSiteInfo/queryList',
		params: data
	})
}

//添加门户站点
export function addedPortalSite(data) {
	return request({
		method: 'post',
		url: 'tbSiteInfo/add',
		data
	})
}

//删除门户站点
export function deletePortalSite(id) {
	return request({
		method: 'post',
		url: 'tbSiteInfo/delete' + id
	})
}

//修改门户站点
export function updatePortalSite(data) {
	return request({
		method: 'post',
		url: 'tbSiteInfo/update',
		data
	})
}

//获取门户站点基本信息
export function getPortalSiteBaseInfo(id) {
	return request({
		method: 'get',
		url: 'tbSiteInfo/queryBase/' + id
	})
}

//上架/下架门户站点
export function updateDelPortalSite(data) {
	return request({
		method: 'post',
		url: 'tbSiteInfo/updateDel',
		data
	})
}